﻿using System;
using System.Collections.Generic;

//[JsonObject(MemberSerialization.OptOut)]类 + [JsonIgnore]属性  ,默认序列化+指定忽略
//[JsonObject(MemberSerialization.OptIn)]类  + [JsonProperty]属性,默认不序列化+指定属性序列化

namespace BanaToys.InfoSys.Web.ApiCall.BanaWww
{

    #region item

    /// <summary>
    /// json系列品类,sync接口用,简单,list/detail的公用父类
    /// </summary>
    public class i_tag_item
    {
        public string FRowGuid{ get; set; }
        public string FParentGuid{ get; set; }
        public string FTagNameChs{ get; set; }
        public string FTagNameEng{ get; set; }
        public bool? FDetail{ get; set; }
        public string FTreeCode{ get; set; }
        public string FTreeCodePath{ get; set; }
        public int? FOrderNo{ get; set; }
        public string FRemark{ get; set; }
        public bool? FIsDisabled { get; set; }
    }

    /// <summary>
    /// json系列品类,list,detail接口用,扩展了sync
    /// </summary>
    public class i_tag_item_view : i_tag_item
    {
       //一样的
    }

    #endregion

    #region q

    /// <summary>
    /// sync,q
    /// </summary>
    public class q_tag_sync
    {
        public i_tag_item Item { get; set; }
    }

    /// <summary>
    /// list,q,查询结果列表
    /// </summary>
    public class q_tag_list
    {
        public string TagCode { get; set; }
        public string TagName { get; set; }
        public int? PageSize { get; set; }
        public int? PageIndex { get; set; }
    }

    /// <summary>
    /// detail,q
    /// </summary>
    public class q_tag_detail
    {
        public string FRowGuid { get; set; }
        public string FTreeCode { get; set; }
    }

    /// <summary>
    /// delete,q
    /// </summary>
    public class q_tag_delete
    {
        public string FRowGuid { get; set; }
        public string FTreeCode { get; set; }
    }

    /// <summary>
    /// state,q,状态修改,目前仅FIsDisabled一个状态
    /// </summary>
    public class q_tag_state
    {
        public string FRowGuid { get; set; }
        public string FTreeCode { get; set; }
        public bool? FIsDisabled { get; set; }
    }

    #endregion

    #region a

    /// <summary>
    /// sync,a
    /// </summary>
    public class a_tag_sync : a__base
    {
        //
    }

    /// <summary>
    /// list,a
    /// </summary>
    public class a_tag_list : a__base
    {
        public int? PageSize { get; set; }
        public int? PageIndex { get; set; }
        public int? RowCount { get; set; }
        public List<i_tag_item_view> List { get; set; }
    }

    /// <summary>
    /// detail,a
    /// </summary>
    public class a_tag_detail : a__base
    {
        public i_tag_item_view Item { get; set; }
    }

    /// <summary>
    /// delete,a
    /// </summary>
    public class a_tag_delete : a__base
    {
        //
    }

    /// <summary>
    /// state,a
    /// </summary>
    public class a_tag_state : a__base
    {
        //
    }

    #endregion

}